<!--数据加载中-->
<template>
  <div v-if="isLoading" class="text-center no-data pdv-10">
    <p class="pdv-10"></p>
    <p>数据加载中...</p>
  </div>
</template>

<script>
  export default {
    name: '',
    props: ['loading', 'data'],
    data () {
      return {}
    },
    created () {
    },
    computed: {
      isLoading () {
        if (this.data && this.data.length > 0) {
          return false
        }
        if (this.loading) {
          return true
        }
      }
    },
    methods: {
    }
  }
</script>

<style scoped lang="scss">
  p{
    font-size: 14PX;
  }
</style>
